package com.nail.client;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

@Component
public class RedisClient {
	@Autowired
    private RedisTemplate redisTemplate;

	public Object get(String key){
		Object object = redisTemplate.opsForValue().get(key);
		return object;
	}

	public void set(String key,Object obj){
		redisTemplate.opsForValue().set(key,obj);
	}
}